<p>El siguiente listado muestra las organizaciones elija una para editarla.</p>

<?php if (count($this->paginator)): ?>
<table class="listclass" width="100%" border="0" cellpadding="0" cellspacing="0">
    <thead>
      <tr>
            <th width="10%" align="left">ID</th>
            <th width="10%" align="left">Fecha desde</th>
            <th width="10%" align="left">Fecha hasta</th>
            <th width="10%" align="left">Costo default</th>
            <th width="10%" align="left">Costo por item</th>
            <th width="10%" align="left">shipping id</th>
            <th width="10%" align="left">Estado</th>
            <th width="10%" align="left">Fecha de baja</th>
            <th colspan= 2 width="20%" align="left">Accion</th>
      </tr>
    </thead>

    <tbody>
        <?php $i=0; foreach ($this->paginator as $shippingcost) : ?>
              <tr class=<?php echo ($i%2==0?'"even clickable"':'"odd clickable"') ?> 
                onclick="document.location='<?=$this->surl( 
        			'shippingcost','update', array( 'id' => $shippingcost['shipping_zone_id'] ),  "%s", 'CartPanel');
                ?>'"
              >
                    <td valign="top"><?php echo $shippingcost['shipping_zone_id']; ?></td>
                    <td valign="top"><?php echo $shippingcost['date_from'] ?></td>
                    <td valign="top"><?php echo $shippingcost['date_to'] ?></td>
                    <td valign="top"><?php echo $shippingcost['default_cost'] ?></td>
                    <td valign="top"><?php echo $shippingcost['additional_cost_item'] ?></td>
                    <td valign="top"><?php echo $shippingcost['shipping_cost_id'] ?></td>
                    <td valign="top"><?php echo $shippingcost['locked']=="T"?"Bloqueado":"Activo" ?></td>
                    <td valign="top"><?php echo is_null($shippingcost['fend_date'])?"":$shippingcost['fend_date']?></td>
                    <td valign="top">
                        <?php if (is_null($shippingcost['fend_date'])) : ?>
                            <?php echo $this->href( "shippingcost", "delete", "Dar de Baja", array( "id" => $shippingcost['shipping_zone_id'] ), "%s", 'CartPanel' ) ?>
                        <?php else : ?>
                            <?php echo $this->href( "shippingcost", "delete", "Reactivar", array( "id" => $shippingcost['shipping_zone_id'] ),"%s", 'CartPanel' ) ?>
                        <?php endif; ?>
                    </td>
              </tr>
        <?php $i++; endforeach; ?>
    </tbody>
</table>
<?php echo $this->paginator; ?>
<?php endif; ?>
<p>
<?php echo $this->href( "shippingcost", "create", "Crear un nuevo costo de envio", array(), "%s", 'CartPanel'  ) ?>
</p>

